﻿/*
 * Copyright © 2020, Wuxi Safover Intelligent Technology Co., Ltd. All rights reserved.
 * 
 * 无锡安永智能科技有限公司版权所有，未经许可，不得用于商业用途
 * 
 * Visit: https://www.safover.com/ 
 */

using Safover.Lidar.DataContract;
using System.Collections.Generic;

namespace Safover.LidarCollector.Models
{
    public class MultiScanConfig : BaseLidarScanConfig
    {
        public override LidarWorkMode LidarWorkMode => LidarWorkMode.Multi;

        public List<BaseLidarScanConfig> RadarScanConfigs { get; set; } = new List<BaseLidarScanConfig>();

        public override string ToString()
        {
            return $"{LidarWorkMode};";
        }

        public override object Clone()
        {
            MultiScanConfig multi = (MultiScanConfig)this.MemberwiseClone();

            foreach (var config in RadarScanConfigs)
            {
                var clone = (BaseLidarScanConfig)config.Clone();
                multi.RadarScanConfigs.Add(clone);
            }

            return multi;
        }
    }


}


